package com.jyxd.web.data.basic;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 床位绑定呼吸机
 */
@Entity
@Table(name = "table_bed_bind_respirator")
@Data
public class BedBindRespirator implements Serializable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 床位编号
     */
    @Column(name = "bed_code")
    private String bedCode;

    /**
     * 呼吸机字典id
     */
    @Column(name = "respirator_id")
    private String respiratorId;
    /**
     * 呼吸机厂家
     */
    @Column(name = "respirator_manufacturers")
    private String respiratorManufacturers;

    /**
     * 呼吸机型号
     */
    @Column(name = "respirator_number")
    private String respiratorNumber;
    /**
     * 串口号id
     */
    @Column(name = "com_number_id")
    private String comNumberId;
    /**
     * 串口号
     */
    @Column(name = "com_number")
    private String comNumber;

    /**
     * 电脑编号
     */
    @Column(name = "computer_number")
    private String comPuterNumber;
    /**
     * 状态（0：禁用 1：正常 -1：删除）
     */
    @Column(name = "status")
    private int status;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

}
